package com.ruoyi.consent.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.consent.mapper.AlgsEquipmentConsentMapper;
import com.ruoyi.consent.domain.AlgsEquipmentConsent;
import com.ruoyi.consent.service.IAlgsEquipmentConsentService;

/**
 * 器材审批Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-21
 */
@Service
public class AlgsEquipmentConsentServiceImpl implements IAlgsEquipmentConsentService 
{
    @Autowired
    private AlgsEquipmentConsentMapper algsEquipmentConsentMapper;

    /**
     * 查询器材审批
     * 
     * @param equipmentApplicationId 器材审批主键
     * @return 器材审批
     */
    @Override
    public AlgsEquipmentConsent selectAlgsEquipmentConsentByEquipmentApplicationId(Long equipmentApplicationId)
    {
        return algsEquipmentConsentMapper.selectAlgsEquipmentConsentByEquipmentApplicationId(equipmentApplicationId);
    }

    /**
     * 查询器材审批列表
     * 
     * @param algsEquipmentConsent 器材审批
     * @return 器材审批
     */
    @Override
    public List<AlgsEquipmentConsent> selectAlgsEquipmentConsentList(AlgsEquipmentConsent algsEquipmentConsent)
    {
        return algsEquipmentConsentMapper.selectAlgsEquipmentConsentList(algsEquipmentConsent);
    }

    /**
     * 新增器材审批
     * 
     * @param algsEquipmentConsent 器材审批
     * @return 结果
     */
    @Override
    public int insertAlgsEquipmentConsent(AlgsEquipmentConsent algsEquipmentConsent)
    {
        return algsEquipmentConsentMapper.insertAlgsEquipmentConsent(algsEquipmentConsent);
    }

    /**
     * 修改器材审批
     * 
     * @param algsEquipmentConsent 器材审批
     * @return 结果
     */
    @Override
    public int updateAlgsEquipmentConsent(AlgsEquipmentConsent algsEquipmentConsent)
    {
        return algsEquipmentConsentMapper.updateAlgsEquipmentConsent(algsEquipmentConsent);
    }

    /**
     * 批量删除器材审批
     * 
     * @param equipmentApplicationIds 需要删除的器材审批主键
     * @return 结果
     */
    @Override
    public int deleteAlgsEquipmentConsentByEquipmentApplicationIds(Long[] equipmentApplicationIds)
    {
        return algsEquipmentConsentMapper.deleteAlgsEquipmentConsentByEquipmentApplicationIds(equipmentApplicationIds);
    }

    /**
     * 删除器材审批信息
     * 
     * @param equipmentApplicationId 器材审批主键
     * @return 结果
     */
    @Override
    public int deleteAlgsEquipmentConsentByEquipmentApplicationId(Long equipmentApplicationId)
    {
        return algsEquipmentConsentMapper.deleteAlgsEquipmentConsentByEquipmentApplicationId(equipmentApplicationId);
    }
}
